package com.frxuexi.park2209_2.adapter


import com.baidu.entity.pb.PoiResult
import com.bumptech.glide.Glide
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.frxuexi.base.bean.FirstPageRoom
import com.frxuexi.park2209_2.R

class HourseAdapter:BaseQuickAdapter<FirstPageRoom,BaseViewHolder>(R.layout.item_hourse) {
    override fun convert(helper: BaseViewHolder, item: FirstPageRoom) {
        helper.setText(R.id.cm_title,item.title)
        helper.setText(R.id.cm_loc,item.garden.name+"/"+item.garden.region.name+"/"+
        item.bedRoom+"室"+item.livingRoom+"厅/"+item.area+"平")
        helper.setText(R.id.cm_label,item.labelDesc)
        helper.setText(R.id.cm_price,item.price.toString())
        helper.setText(R.id.cm_priceper,item.unitPrice.toString())
        Glide.with(context).load(item.indexPictureUrl).into(helper.getView(R.id.cm_img))
    }
}